<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui, user-scalable=no">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>@yield('title', config('app.name')) - {{ config('app.name')  }}</title>
    @include('backend.layouts.header')
    @stack('styles')
</head>

<body class="container-fluid">
<div class="p-t-10 p-b-10">
    @yield('content')
</div>
@include('backend.layouts.footer',['widget_params'=>['mode'=>'login']])
<script type="text/javascript">
    $('.ajaxForm').submit(function (e) {
        systemUtil.ajax($(e.target).attr('action')).setData($(e.target).serialize()).send().then(function (res) {
            setTimeout(function () {
                parent.location.reload();
            }, 2000);
            return res;
        }).showMsg(true);
        return false;
    });
</script>
@stack('scripts')
</body>
</html>
